import { http } from "@/utils/http";

type Result = {
  success: boolean;
  message: string;
  data: res;
};
type res = {
  data: Array<any>;
};

/**
 * 获取动态路由
 * @returns
 */
export const getAsyncRoutes = () => {
  return http.request<Result>("get", "/system/menus/getAsyncRoutes");
};
